﻿@using MvcGMaps.Utils
@{
    ViewBag.Title = "Карта происшествий";   // sounds better, much better:)
}
@section gmaps {
    <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&language=ru_RU"></script>
    <script type="text/javascript" src="~/Scripts/map/markerclusterer_packed.js"></script>
    <script type="text/javascript" src="~/Scripts/notify/notify.min.js"></script>
    <script type="text/javascript" src="~/Scripts/map/gmap.js"></script>
}
<div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="loginModalLabel" aria-hidden="true"></div>
<div class="col-xs-4 col-md-2">
    <div id="menu">
        @using (Html.BeginForm("Search", "Home", FormMethod.Post, new { @class="form-horizontal", @id="searchForm", @role="form"} ))
        {
            <fieldset>
                <legend>Поиск</legend>
                @Html.MarkerTypeSelect("Тип:", "mType", "MarkerType", 0)
                @Html.MarkerStatusSelect("Статус:", "sType", "StatusType", 0)
                @Html.InputDate("Начало периода:", "datepicker1", "StartDate", "", true)
                @Html.InputDate("Конец периода:", "datepicker2", "EndDate", "", true)
                <div class="btn-group-sm">
                    <button type="button" class="btn btn-primary" onclick="submitSearch()">Найти</button>
                    <button type="button" class="btn btn-info" onclick="clearSearch()">Очистить</button>
                </div>
            </fieldset>
        }
        <div id="searchResult" class="hidden"></div>
    </div>
</div>
<div id="map" class="col-xs-12 col-md-10">
    <div id="map-canvas"></div>
</div>
<div class="modal fade" id="markerModal" tabindex="-1" role="dialog" aria-labelledby="markerModalLabel" aria-hidden="true"></div>